#pragma once
#include "ISprite.h"

class Animation
{
public:
	Animation();
	void Init( ISprite* sprite, int numFrames, int duration );
	void Draw( double time, float rotation, float xPos, float yPos, bool flipped = false );
	void StartAnimation( double time );
private:
	ISprite* m_sprite;
	int m_numFrames;
	int m_duration;
	double m_startTime;
};